
function validateForm() {

    var x = document.forms["userForm"]["name"].value;
    if ( x == null || x == "") {
        alert("Name must be filled out.");
        document.forms["userForm"]["name"].focus();
        return false;
    }
    
    var x = document.forms["userForm"]["user"].value;
    if ( x == null || x == "") {
        alert("User must be filled out.");
        document.forms["userForm"]["user"].focus();
        return false;
    }
    
    var x = document.forms["userForm"]["pwd"].value;
    if ( x == null || x == "") {
        alert("Password must be filled out.");
        document.forms["userForm"]["pwd"].focus();
        return false;
    }
    
    return true;
    
}

function goTo(goToHere) {
   window.location=goToHere;
}